package indi.zhifa.study2025.oa.service.role;

import indi.zhifa.study2025.oa.dao.mybatis.role.mapperOut.RoleSimpleMapperOut;
import indi.zhifa.study2025.oa.dao.po.GenRelRoleMenuEntity;
import indi.zhifa.study2025.oa.dao.po.GenRoleEntity;

import java.util.List;
import java.util.Map;

public interface IRoleService {

    GenRoleEntity checkById(Long id);
    GenRoleEntity create(GenRoleEntity role);
    GenRoleEntity edit(Long pId,Object pRoleEditDto);


    List<RoleSimpleMapperOut> listByUserId(Long pUserId);
    List<GenRoleEntity> findAll();
    Map<Long,List<String>> getRelDepCodeList(List<Long> pRoleIdList);
    Map<Long,List<String>> getRelAuthDataCodeList(List<Long> pRoleIdList);

    List<GenRelRoleMenuEntity> setMenus(Long pRoleId, List<Long> pMenuIdList);
}
